package com.pwt.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author dw
 * @date 2021/11/16 10:31
 * @Description
 */
@Data
@Schema(description = "事件措施原因模型")
public class EventMeasuresModel {

    @Schema(name = "eventName",description = "事件名称")
    private String eventName;

    @Schema(name = "partType",description = "零件类型")
    private String partType;

    @Schema(name = "partName",description = "零件名称")
    private String partName;

    @Schema(name = "eventTime",description = "发生时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date eventTime;
}
